package com.bcmusic.search.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.Date;

/**
 * @ClassName : MusicVO  //类名
 * @Description :   //描述
 * @Author : YG  //作者
 * @Date: 2020-12-05 19:05  //时间
 */
@Data
public class MusicVO {

    private String registrationCode;

    private String ownerName;

    @ApiModelProperty(value = "音乐id。",required = false)
    @Column(name = "music_id")
    private Integer musicId;//音乐id。

    @ApiModelProperty(value = "",required = false)
    @Column(name = "music_name")
    private String musicName;//

    @ApiModelProperty(value = "专辑名称",required = false)
    @Column(name = "album_name")
    private String albumName;//专辑名称

    @ApiModelProperty(value = "唱片公司",required = false)
    @Column(name = "record_company")
    private String recordCompany;//唱片公司

    @ApiModelProperty(value = "出版公司",required = false)
    @Column(name = "publishing_company")
    private String publishingCompany;//出版公司

    @ApiModelProperty(value = "版权方编号。关联user表的user_number字段。",required = false)
    @Column(name = "owner_number")
    private String ownerNumber;//版权方编号。关联user表的user_number字段。

    @ApiModelProperty(value = "0为歌曲，1为曲谱",required = false)
    @Column(name = "music_type")
    private Integer musicType;//0为歌曲，1为曲谱

    @ApiModelProperty(value = "演唱者",required = false)
    @Column(name = "singer")
    private String singer;//演唱者

    @ApiModelProperty(value = "音乐作品地址。",required = false)
    @Column(name = "music_address")
    private String musicAddress;//音乐作品地址。

    @ApiModelProperty(value = "作曲家",required = false)
    @Column(name = "composer")
    private String composer;//作曲家

    @ApiModelProperty(value = "曲谱文件",required = false)
    @Column(name = "opern_file")
    private String opernFile;//曲谱文件

    @ApiModelProperty(value = "歌词作者",required = false)
    @Column(name = "lyricist")
    private String lyricist;//歌词作者

    @ApiModelProperty(value = "歌词文件地址",required = false)
    @Column(name = "lyrics_file")
    private String lyricsFile;//歌词文件地址

    @ApiModelProperty(value = "音乐上传时间。",required = false)
    @Column(name = "upload_time")
    private String uploadTime;//音乐上传时间。

    public MusicVO(String registrationCode, String ownerName, Integer musicId, String musicName, String albumName, String recordCompany, String publishingCompany, String ownerNumber, Integer musicType, String singer, String musicAddress, String composer, String opernFile, String lyricist, String lyricsFile, String uploadTime) {
        this.registrationCode = registrationCode;
        this.ownerName = ownerName;
        this.musicId = musicId;
        this.musicName = musicName;
        this.albumName = albumName;
        this.recordCompany = recordCompany;
        this.publishingCompany = publishingCompany;
        this.ownerNumber = ownerNumber;
        this.musicType = musicType;
        this.singer = singer;
        this.musicAddress = musicAddress;
        this.composer = composer;
        this.opernFile = opernFile;
        this.lyricist = lyricist;
        this.lyricsFile = lyricsFile;
        this.uploadTime = uploadTime;
    }
}
